/* eslint-disable */
import {
  getClassRoom
} from "../../api/ClassManage/Room"

const state = {
  count: 'Afsfdsd333',
  rooom: []
}

const mutations = {
  getRoom(state, res) {
    state.rooom = res.data
  }
}

const actions = {
  async getRoom({
    commit
  }) {
    const {
      data: res
    } = await getClassRoom()
    if (res.code !== 1) {
      Message.error(res.msg)
    }
    commit('getRoom', res)
  }
}
const getters = {

}

export default {
  namespaced: true,
  state,
  mutations,
  actions,
  getters
}
